Peripheral sealing device for surgical mask or filtering face piece